package Afternoon;

import java.util.HashMap;

public class Afternoon {

    public static void main(String[] args) {

        HashMap<String, Integer> map = new HashMap<>();


        map.put("张三", 23);
        map.put("李四", 24);
        map.put("王五", 25);


        System.out.println(map);

        boolean realt = map.containsKey("王五");

        System.out.println("是否包含王五:" + realt);

        realt = map.containsValue(25);
        System.out.println("集合中是否包含25:" + realt);


        map.remove("张三", 23);
        System.out.println(map);

        System.out.println("集合的长度:" + map.size());

        map.clear();

        System.out.println(map);

        map.size();

    }
}